Use monotonic clocks for MUXPool and fix timeout calculation bug.#424
Use monotonic clocks for MUXPool and fix timeout calculation bug.#424jameshilliard wants to merge 1 commit intojpos:masterfrom
Conversation
|
You mix stuff in the PRs which make them difficult to accept. Can you reference which timeout calculation bug you are referring too? |
The other changes are somewhat related to the primary fix.
The main issue is with this code: jPOS/jpos/src/main/java/org/jpos/q2/iso/MUXPool.java Lines 77 to 79 in 6c05df8 Where the jPOS/jpos/src/main/java/org/jpos/q2/iso/QMUX.java Lines 142 to 145 in 6c05df8 |
|
I understand you are referring to issue #414 - we don't need nano precision and excessive object reaction to fix that. In addition, your fix doesn't address the real intent of using a 0 timeout, which is fire-and-forget the message. In addition, this fix only fixes the synchronous call to MUX.request, not the async one. I addressed this issue in 4cd6c95 - we can raise a case for the monotonic clock stuff separately. |
Reason for using
There is some overhead from this but it seems to be minimal from some benchmarks I did, we could technically avoid it but not sure that would be worth it. |
Hmm, the async version still doesn't really look right to me. Reworked some of the logic here more in #425. |
Alternative to #415.